<@sp.pagehead shiroUserHelper.getCurrentShiroUser().parentSources />
<div class="panel panel-inverse" data-sortable-id="form-stuff-5">
    <div class="panel-heading">
        <h4 class="panel-title">学生选课</h4>
    </div>
    <div class="panel-body">
        <form id="studentSelectForm" name="studentSelectForm" method="post" class="form-inline">
            <div class="form-group m-r-10">
                学生：<select id="stuId" name="stuId">
                    <#list s as students>
                        <option value="${s.id}">${s.stuName}</option>
                    </#list>
                </select>
            </div>
            <div class="form-group m-r-10">
                &nbsp;&nbsp;&nbsp;&nbsp;
                课程：<select id="courseId" name="courseId">
                    <#list c as courses>
                        <option value="${c.id}">${c.courseName}</option>
                    </#list>
                </select>
            </div>
            <button type="button" class="btn btn-sm btn-primary m-r-5"
                    onclick="postDataByFormDisplay('student/list','studentList','studentForm')">
                <i class="fa fa-search m-r-5"></i>提 交
            </button>
        </form>
    </div>
</div>
<hr/>

<div class="panel-body">
    <div class="table-responsive">
        <table class="table table-striped table-bordered">
            <thead>
            <tr>
                <th>学生学号</th>
                <th>学生</th>
                <th>所在班级</th>
                <th>性别</th>
                <th>所选课程</th>
                <th>课程简介</th>
                <th>课时</th>
                <th>最终操作人</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <#list courseStudents as ct>
            <tr>
                <td>${ct.stuId.stuCode}</td>
                <td>${ct.stuId.stuName}</td>
                <td>${ct.stuId.clazz.clsName}</td>
                <td>${ct.stuId.stuGender}</td>
                <td>${ct.cid.courseName}</td>
                <td>${ct.cid.courseContent}</td>
                <td>${ct.cid.courseHour}</td>
                <td>${ct.actor.accountName}</td>
                <!--
                <td>
                    <a class="btn btn-danger" href="javascript:getConfirmData('确定要退选该门课程?','${rc.contextPath}/student/course/delete/${ct.id}','${shiroUserHelper.getCurrentShiroUser().parentMenuSource.name}')">退选</a>
                </td>
                 -->
            </tr>
            </#list>
        </table>
    </div>
</div>